package cn.craftyun.serverlist.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.io.Serializable;
import java.math.BigDecimal;
import java.time.LocalDateTime;

/**
 * <p>
 * 用户实体类
 * </p>
 *
 * @author FanHuaCloud
 * @since 2021-09-22
 */
@Data
@EqualsAndHashCode(callSuper = false)
public class User implements Serializable {


    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    /**
     * 用户名
     */
    private String username;

    /**
     * 密码
     */
    private String password;

    /**
     * 邮箱地址
     */
    private String email;

    /**
     * 游戏名
     */
    @TableField("player_name")
    private String playerName;

    /**
     * 余额
     */
    private BigDecimal balance;

    /**
     * 注册ip
     */
    @TableField("reg_ip")
    private String regIp;

    /**
     * 注册时间
     */
    @TableField("reg_time")
    private LocalDateTime regTime;

    @TableField("user_role")
    private Integer userRole;
}
